﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ADIGRE.Domain;
using System.ComponentModel.DataAnnotations;

namespace ADIGRE.MVC3.Web.Controllers.ViewModels
{
    public class EntradaViewModel
    {
        [Display(Name = "Culto"), DisplayFormat(DataFormatString = "w{0:dd/MM/yyyy}")]
        public DateTime? DtCulto;
        [Display(Name = "Ofertas"), DisplayFormat(DataFormatString = "R${0:N2}")]
        public decimal VlOfertas;
        [Display(Name = "Dízimos"), DisplayFormat(DataFormatString = "R${0:N2}")]
        public decimal VlDizimos;
        [Display(Name = "Total"), DisplayFormat(DataFormatString = "R${0:N2}")]
        public decimal VlTotal { get { return VlDizimos + VlOfertas; } }
        public List<Dizimo> Dizimos;
    }
}